#ifndef OPTIONMODEL_H
#define OPTIONMODEL_H

#include "keybasedlistmodel.h"

class OptionCollection;
class UnitOption;

class OptionModel : public KeyBasedListModel
{
    Q_OBJECT
public:
    OptionModel(const OptionCollection *options, QObject *parent = 0);

protected:
    QVariant getDataForKey(const QString& key, int column, int role) const;

private:
    const OptionCollection *_options;
};

#endif // OPTIONMODEL_H
